<template>
  <div id="app" style="height: 100%;">
    <el-container style="height: 100%; ">
      <Aside :isCollapse="isCollapse" :sideWidth="sideWidth" :logoSrc="logoSrc" />
      <el-container>
        <el-header style="border-bottom:1px solid #ccc;">
          <Header :collapseBtnClass="collapseBtnClass" :collapse="collapse" />
        </el-header>
        <el-main>
          <router-view />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import Aside from "@/components/placement/Aside.vue";
import Header from "@/components/placement/Header.vue";
import User from "@/views/system/User.vue";
export default {
  data() {
    return {
      collapseBtnClass: "el-icon-s-fold",
      isCollapse: false,
      sideWidth: "200",
      logoSrc: "logo",

    };
  },

  methods: {
    collapse() {
      this.isCollapse = !this.isCollapse;
      if (this.isCollapse) {
        this.sideWidth = 64;
        this.collapseBtnClass = "el-icon-s-unfold";
        this.logTextShow = false;
        this.logoSrc = "favicon";
      }
      else {
        this.sideWidth = 200;
        this.collapseBtnClass = "el-icon-s-fold";
        this.logTextShow = true;
        this.logoSrc = "logo";
      }
    },
  },
  components: { Aside, Header, User }
};
</script>